<!-- 内容边框 -->
<template>
  <div class='border_box'>
    <div class="header">
      <div>{{title}}</div>
      <div class="right">
        <slot></slot>
      </div>
    </div>
    <div class="content">
      <slot name="content"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: ['title'],
  data() {
    return {
    };
  },

  components: {},

  computed: {},

  created() { },

  mounted() { },

  methods: {
  }
}

</script>
<style lang='less' scoped>
.border_box {
  .header {
    height: 30px;
    width: 100%;
    background: url("~@/assets/imgs/title_bg.png") top right no-repeat;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    color: #0df8ac;
    .right {
      cursor: pointer;
      font-size: 12px;
      color: #81e4c7;
      align-items: center;
      div {
        display: flex;
        margin-left: 5px;
        flex: none;
      }
      img {
        width: 16px;
        height: 16px;
        flex: none;
      }
      display: flex;
    }
  }
  .content {
    background: rgba(13, 25, 39, 0.7);
    border: 1px solid #06586d;
    margin-bottom: 5px;
  }
}
</style>